<fieldset>
    <legend>自动备份配置</legend>
    <form class="layui-form layui-card" action="{:request()->url()}" onsubmit="return false" method="post" data-auto="true" autocomplete="off">
        <table>
            <tr>
                <td>
                    <div class="layui-input text-center" style="width:150px">
                        {foreach ['0' => '关闭','1' => '开启'] as $k => $v}
                        <!--{if sysconf('database_is_auto') == $k}-->
                        <label class="think-radio"><input type="radio" value="{$k}" name="database_is_auto" title="{$v}" checked lay-ignore>{$v}</label>
                        <!--{else}-->
                        <label class="think-radio"><input type="radio" value="{$k}" name="database_is_auto" title="{$v}" lay-ignore>{$v}</label>
                        <!--{/if}-->
                        {/foreach}
                    </div>
                </td>
                <td width='20px'></td>
                <td>
                    <label class="text-center nowrap">
                        数据库每 <input style="width:130px" class="layui-input inline-block text-center padding-left-0" name="database_day" data-blur-number="0" value="{:sysconf('database_day')}"> 天自动备份
                    </label>
                </td>
                <td width='20px'></td>
                <td>
                    <label class="text-center nowrap">
                        最多保留 <input style="width:130px" class="layui-input inline-block text-center padding-left-0" name="database_number" data-blur-number="0" value="{:sysconf('database_number')}"> 份
                    </label>
                </td>
                <td width='20px'></td>
                <td>
                    <label class="text-center nowrap">
                        <button class="layui-btn layui-btn-sm layui-btn-primary">确认配置</button>
                    </label>
                </td>
            </tr>
        </table>
    </form>
</fieldset>

<script>form.render()</script>
<div class="layui-form-item block relative">
    <span class="color-desc font-s14">如果开启备份时当前数量以超过设置最大备份数量,那么备份数量不会增加</span>
</div>